<!DOCTYPE html>
<html>
<head>
	<title>test</title>
	<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
	<meta charset="UTF-8"/>
	<script type="text/javascript" src="/static/js/jquery.min.js"></script>
</head>
<body>
	<form method="post">
		<input type="checkbox" name="metrics" value="train_duration">训练时长
		<input type="checkbox" name="metrics" value="val_accuracy">验证准确率
		<input type="checkbox" name="metrics" value="gpu_utility">GPU利用率
		<input type="text" name="a" value="1">
		<input type="submit" value="提交" id="submit-input">
	</form>
	{{ content }}
	<script type="text/javascript">
		function check(){
			var check_list=new Array();
			$('input[name="metrics"]:checked').each(function(){
				check_list.push($(this).val());
			});
			$('input[name="metrics"]').val(check_list.join(','));
			console.log(check_list.join(','));
		}
		$('#submit-input').click(check);
	</script>
</body>